package com.zzgele.qmzb.api.utils;

import java.util.UUID;

public class UUIDUtil {
    /**
     * 获取UUID
     * @return
     */
	public static String getUUID() {
		String s = UUID.randomUUID().toString();
		//return s.substring(0, 8) + s.substring(9, 13) + s.substring(14, 18) + s.substring(19, 23) + s.substring(24);
		return s.replace("-", "");
	}

	/**
	 * 获取包装过的UUID {UUID}
	 * @return
	 */
	public static String getUUIDFormat() {
		return  "{" + getUUID() + "}";
	}
}
